import { pluginManager } from "epic-designer";
import SelectCustom from "./user/index";
import TypeSelect from "./type/index";
import MenuSelect from "./menu/index";
import ActionSelect from "./action/index";
import DepartmentSelect from "./department/index";
import Dictionary from "./dictionary/index";

// 安装扩展
export function setupDesignerExtensions(): void {
  const componentArray = [
    SelectCustom,TypeSelect,MenuSelect,ActionSelect,DepartmentSelect,Dictionary
  ];
  // 注册组件
  componentArray.forEach((item) => {
    // 注册组件
    pluginManager.registerComponent(item);
    pluginManager.addBaseComponentTypes(item.defaultSchema.type);
  });
}


